/**
* @author AlbertDarren
* @contact 2563491540@qq.com
*/
#include <iostream>

using namespace std;

int main_16()
{
    double f,c;
    scanf("%lf",&f);
    c=5*(f-32)/9;
    printf("%.3lf",c);
	return 0;
}
